TITLE setProxySettings
@ECHO OFF
ECHO exporting current registry settings
CALL "C:\Program Files\johnstamos-win32\scripts"\regexport.bat
ECHO Press any key to add new registry settings (temporarily)
PAUSE
REG ADD "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings" /v ProxyEnable /t REG_DWORD /d 1 /f
REG ADD "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings" /v ProxyServer /t REG_SZ /d "http://127.0.0.1:8118" /f
REG ADD "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings" /v ProxyHttp1.1 /t REG_DWORD /d 0 /f
REG ADD "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings" /v ProxyOverride /t REG_SZ /d "<local>>" /f
REG ADD "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings" /v MigrateProxy /t REG_DWORD /d 1 /f
CHOICE /C YN /M "If you would like to revert your settings, press 'Y'. --"
IF ERRORLEVEL 1 "C:\Program Files\johnstamos-win32\scripts"\reset.bat
IF ERRORLEVEL 2  PAUSE
